import request from '@/utils/request'

// 项目信息管理
const api = {
  // 查询
  list(sendData) {
    return request.request({
      url: '/business/base/class/list',
      method: 'GET',
      params: sendData,
    })
  },

  // 添加
  add(sendData) {
    return request.request({
      url: '/business/base/class/save',
      method: 'POST',
      data: sendData,
    })
  },

  // 修改
  edit(sendData) {
    return request.request({
      url: '/business/base/class/edit',
      method: 'POST',
      data: sendData,
    })
  },

  // 删除
  delete(sendData) {
    return request.request({
      url: '/business/base/class/delete',
      method: 'GET',
      params: sendData,
    })
  },

  // 学生 查询
  studentList(sendData) {
    return request.request({
      url: '/business/base/student/list',
      method: 'GET',
      params: sendData,
    })
  },

  // 基础信息-班级信息管理-批量绑定学生
  studentBind(sendData) {
    return request.request({
      url: '/business/base/class/batch/bind/student',
      method: 'POST',
      data: sendData,
    })
  },

  // 基础信息-部门管理-部门人员管理-批量移除学生
  studentUnbind(sendData) {
    return request.request({
      url: '/business/base/class/batch/unbind/student',
      method: 'POST',
      data: sendData,
    })
  },
}
export default api
